package com.example.demo.excelReload;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName ExcelReload
 * @Description TODO
 * @Author skies
 * @Date 2021/3/26 21:54
 * @Version 1.0
 */
public class ExcelReload extends AnalysisEventListener<ExcelImport> {

	@Getter
	@Setter
	private List<ExcelImport> list = new ArrayList<>();

	@Override
	public void invoke(ExcelImport data, AnalysisContext context) {
		list.add(data);
	}

	@Override
	public void doAfterAllAnalysed(AnalysisContext context) {

	}
}
